package com.CampusLife.until;

public class RandomSMS {
    //随机生成六位短信验证码
    public int sendsms() {
        int Flag =500;
        for (int i = 1; i <= 1; i++) {
            int intFlag = (int) (Math.random() * 1000000);

            String flag = String.valueOf(intFlag);
            if (flag.length() == 6 && flag.substring(0, 1).equals("9")) {
                return intFlag;

            } else {
                intFlag = intFlag + 100000;
                return intFlag;

            }
        }
        return Flag;
    }
}